#!/bin/sh
git pull https://gitee.com/yellow-horse-and-lenin/renren-fast.git

mvn clean install

cd target

APP_NAME=renren-fast.jar

pid=`ps -ef|grep $APP_NAME|grep -v grep|awk '{print $2}' `

kill -9 $pid
echo "restart...."
nohup java -jar renren-fast.jar &